package com.cuiyun97.service.impl;

import com.cuiyun97.domain.po.SetJwt;
import com.cuiyun97.mapper.SetJwtMapper;
import com.cuiyun97.service.SetJwtService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * jwt配置 service
 *
 */
@Service
public class SetJwtServiceImpl implements SetJwtService {

    @Resource
    private SetJwtMapper setJwtMapper;

    /**
     * 查询最后一条
     *
     * @return
     */
    @Override
    public SetJwt getLastOne() {
        SetJwt lastOne = setJwtMapper.getLastOne();
        return lastOne;
    }
}
